<div class="users index">
    <h2><?php echo __('Listado de Usuarios'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('shop_id'); ?></th>
            <th><?php echo $this->Paginator->sort('username'); ?></th>
            <th><?php echo $this->Paginator->sort('name'); ?></th>
            <th><?php echo $this->Paginator->sort('role'); ?></th>
<!--            <th><?php // echo $this->Paginator->sort('avatar');    ?></th>-->
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($users as $user): ?>
            <tr>
                <td><?php echo h($user['Shop']['name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['username']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['name']); ?>&nbsp;</td>
                <td><?php echo h($user['User']['role']); ?>&nbsp;</td>
    <!--                <td><?php // echo h($user['User']['avatar']);    ?>&nbsp;</td>-->
                <td class="actions">
                    <?php echo $this->Html->link(__('View'), array('action' => 'view', $user['User']['id'])); ?>
                    <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $user['User']['id'])); ?>
                    <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <?php echo $this->element('footer/paginator') ?>

</div>
<div class="actions">
    <h3><?php echo __('Opciones'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Home'), array('controller' => 'sales', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('Listado de Usuarios'), array('action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('Nuevo Usuario'), array('action' => 'add')); ?></li>

    </ul>
</div>
